﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace newct
{
    public partial class Detail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string new_id = Request["id"];

            SqlConnection suib = new SqlConnection("Data Source=.;Initial Catalog=网页;Integrated Security=True");
            suib.Open();
            SqlDataReader dr = new SqlCommand("select * from jies where news_id=" + new_id, suib).ExecuteReader();
            if (dr.Read())
            {
                lblTitle.Text = dr["title"].ToString();
                lblContent.Text = dr["news_content"].ToString();

            }
            dr.Close();
            suib.Close();
        }
    }
}